App({
  onLaunch: function () {
    var t = this;
    wx.cloud && wx.cloud.init({
      traceUser: !0
    }), wx.getSystemInfo({
      success: function (e) {
        t.globalData.StatusBar = e.statusBarHeight;
        var o = wx.getMenuButtonBoundingClientRect();
        o ? (t.globalData.Custom = o, t.globalData.CustomBar = o.bottom + o.top - e.statusBarHeight) : t.globalData.CustomBar = e.statusBarHeight + 50
      }
    })
  },
  getModel: function () {
    return this.globalData.sysinfo.model
  },
  getWxVersion: function () {
    return this.globalData.sysinfo.version
  },
  getSystem: function () {
    return this.globalData.sysinfo.system
  },
  getPlatform: function () {
    return this.globalData.sysinfo.platform
  },
  getSDKVersion: function () {
    return this.globalData.sysinfo.SDKVersion
  },
  toastTips: function (t) {
    wx.showToast({
      title: t
    })
  },
  toastTips1: function (t, e) {
    wx.showToast({
      title: t,
      duration: e
    })
  },
  toastTips2: function (t) {
    wx.showToast({
      title: t,
      icon: "loading"
    })
  },
  showModal: function (t) {
    wx.showModal({
      title: "提示",
      content: t,
      showCancel: !1
    })
  },
  showLoading: function (t) {
    wx.showLoading({
      title: t,
      mask: !0
    })
  },
  isBlank: function (t) {
    return "[object Undefined]" === Object.prototype.toString.call(t) || ("[object String]" === Object.prototype.toString.call(t) || "[object Array]" === Object.prototype.toString.call(t) ? 0 == t.length : "[object Object]" !== Object.prototype.toString.call(t) || "{}" == JSON.stringify(t))
  },
  globalData: {
    userInfo: null,
    sysinfo: null,
    rec_data: "",
    RxBuffer: new Uint8Array(48),
    Receive_count: 0,
    rx_status: 0,
    rx_data_len: 0,
    clc_check_code: 0,
    Receive_time_out: 0,
    success_count: 0,
    error_count: 0,
    show_switch_bit: 0,
    motor_speed: 725,
    mcu_bus_voltage: 51,
    mcu_bus_current: 33,
    mcu_q_voltage: 0,
    mcu_d_voltage: 0,
    mcu_q_currente: 0,
    mcu_d_currente: 0,
    Ext_temperatrue_senser: 26,
    MCU_temperatrue_senser: 25,
    MCU_temperatrue_fact: 0,
    mixed_flag_status_show: 0,
    error_code: 0,
    m_mcu_status_value: 0,
    write_param_success_flag: !1,
    reset_mcu_success_flag: !1,
    connected: !0,
    Storage_deviceId: "",
    auto_conect: !0,
    CAN_debug_mode: !1,
    fork_select_flag: !1,
    as: "k8BsXmqKQTQ7L1ifHnF2l03EPYG3h7",
    ble_productKey: "a1Rug9biACL",
    productKey: "a1qEt2hbIqy",
    productSecret: "hNy9fEImzmTVlLnI",
    deviceName: "123456789",
    endpoint: "https://iot.cn-shanghai.aliyuncs.com",
    ai: "LTAI5tCLd4RwbUb9EYK8p2mP",
    apiVersion: "2018-01-20",
    ble_uuid: "123456702",
    wx_openid: "",
    services_uuid: "",
    services_name: "",
    ble_ManufacturerData: "",
    client: null,
    ble_write_enable: !1,
    mqtt_tx_enable: !1
  }
});